<template>
  <h2>我是About的内容</h2>
</template>

<script>
  export default {
    name:'About',
    mounted() {
      this.timer = setTimeout(() => {
        // this.$router.replace('/home')
        // this.$router.replace({path:'/home'})
        // this.$router.replace({name:'zhuye'})
        this.$router.push({
          name:'zhuye',
          query:{
            a:100,
            b:200
          }
        })
      }, 3000);
    },
    beforeDestroy() {
      clearTimeout(this.timer)
    },
  }
</script>